package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.wdt.api.response.support.StockOutOrderTradeDTO;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.WdtQybStockOut;
import com.ygqh.baby.po.YgWholesalerDeliveryOrderDetail;

/**
 * @author Ss
 */
public interface YgWholesalerDeliveryOrderDetailService {

	List<YgWholesalerDeliveryOrderDetail> find();

	int findCount();

	YgWholesalerDeliveryOrderDetail findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgWholesalerDeliveryOrderDetail ygWholesalerDeliveryOrderDetail);

	int update(YgWholesalerDeliveryOrderDetail ygWholesalerDeliveryOrderDetail);

	int saveOrUpdate(YgWholesalerDeliveryOrderDetail ygWholesalerDeliveryOrderDetail);

	ResultSet<YgWholesalerDeliveryOrderDetail> search(QueryInfo queryInfo, String q);

	void addDeliveryOrderDetailAsync(List<WdtQybStockOut> outList);

	void addDeliveryOrderDetailAsyncByDTO(List<StockOutOrderTradeDTO> outList);

	List<YgWholesalerDeliveryOrderDetail> findByShopNo(String shopNo, Date startDate, Date endDate);
}
